<?
	$section='Users';
	require_once '../inc/functions.php';
	require_once 'data.php';
	$result = GetAll();

?>

	<link rel="stylesheet" type="text/css" href="<?=$rootUrl?>inc/content.css" />

    <a href="">Add</a>
    
		<table>
    		<tr>
            	<th>First Name </th>
                <th>Last Name </th>
            </tr>
            
    		<? while($rs = $result->fetch_assoc()) { ?>
            	<tr>
            		<td> <?=$rs['firstName']?> </td>
                    <td> <?=$rs['lastName']?> </td>
                    <td> 
                   		<a href="edit.php?id=<?=$rs['id']?>">Edit</a>
                    	<a href="delete.php?id=<?=$rs['id']?>">Delete</a>
                        <a href="details.php?id=<?=$rs['id']?>">View</a>
                    </td>
                 </tr>   
      		<? } ?>   